<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>${user.name}的用户信息</title>
	</head>
	<body>
		个人信息：
		<ul>
			<li>注册日期：${user.register_date}</li>
			<li>ACG币：${user.money}</li>
			<li>积分：${user.rating}</li>
		</ul>
		<%
			resources = user.resource_set[:10]
			classifications = ['全年龄', '15禁', '18禁']
		%>
		% if resources:
		最新资源：
		<table>
			<tr>
				<th>资源名</th>
				<th>网盘类型</th>
				<th>分类</th>
				<th>分级</th>
				<th>发布日期</th>
				<th>过期时间</th>
				<th>大小</th>
				<th>人气</th>
				<th>评分</th>
				<th>价格</th>
			</tr>
			% for resource in resources:
			<tr>
				<td>resource.title</td>
				<td>resource.disk_type</td>
				<td>resource.categories</td>
				<td>classifications[resource.classification]</td>
				<td>resource.publish_time</td>
				<td>resource.expire_time</td>
				<td>resource.total_size</td>
				<td>resource.view</td>
				<td>resource.rating</td>
				<td>resource.price</td>
			</tr>
			% endfor
		</table>
		% endif
	</body>
</html>